package com.stylefeng.guns.modular.biz.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.stylefeng.guns.common.persistence.model.OrderInfo;
import com.stylefeng.guns.common.persistence.model.ProductInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 订单信息Dao
 *
 * @author zhouh
 * @Date 2017-10-17 21:13:36
 */
public interface OrderDao {

    /**
     * 获取订单列表
     * @author stylefeng
     * @Date 2017/4/16 23:48
     */
    List<Map<String, Object>> getOrders(@Param("page") Page<OrderInfo> page, @Param("deptid")Integer deptid, @Param("orderNo") String orderNo,
                                        @Param("userName") String userName,@Param("userPhone") String userPhone,@Param("address") String address,
                                        @Param("setupName") String setupName,@Param("salesName") String salesName,@Param("status") Integer status,
                                        @Param("orderByField") String orderByField, @Param("isAsc") boolean isAsc);


    /**
     * 获取订单列表
     * @author stylefeng
     * @Date 2017/4/16 23:48
     */
    List<Map<String, Object>> getUserInfos(@Param("page") Page<OrderInfo> page, @Param("deptid")Integer deptid, @Param("orderNo") String orderNo,
                                        @Param("userName") String userName,@Param("userPhone") String userPhone,@Param("address") String address,
                                        @Param("setupName") String setupName,@Param("salesName") String salesName,
                                        @Param("orderByField") String orderByField, @Param("isAsc") boolean isAsc);


}
